/** 公共接口 **/
import { base_uri } from '../request.config';

const commonApi = {
    segmentList: 'segment/search', // 号段列表
    segmentDetail: 'segment/detail', // 号段详情
    segmentCreate: 'segment/insert', // 号段新增
    segmentUpdate: 'segment/update', // 号段编辑
    segmentDelete: 'segment/delete', // 号段删除
    getBySegment: 'segment/getBySegment', // 号段删除
};

const common: any = Object.keys(commonApi)
    .reduce((origin, item) => {
        origin[item] = `${base_uri}/${commonApi[item]}`;
        return origin; 
    }, {})

export default common;
